/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconCoupon: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M572.096 192l7.552 21.344a64.032 64.032 0 0 0 120.704 0l7.552-21.312L832 192a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96h-124.096l-7.552-21.344a64.032 64.032 0 0 0-120.704 0l-7.552 21.344H192a96 96 0 0 1-96-96V288a96 96 0 0 1 96-96h380.096z m-42.944 64H192a32 32 0 0 0-31.776 28.256L160 288v448a32 32 0 0 0 32 32h337.152l1.504-2.592a128.032 128.032 0 0 1 102.56-61.216L640 704a128 128 0 0 1 109.344 61.408l1.472 2.592H832a32 32 0 0 0 31.776-28.256L864 736V288a32 32 0 0 0-32-32h-81.184l-1.504 2.624a128.032 128.032 0 0 1-102.528 61.184L640 320a128 128 0 0 1-109.312-61.376L529.152 256zM352 384a32 32 0 0 1 31.776 28.256L384 416v192a32 32 0 0 1-63.776 3.744L320 608v-192a32 32 0 0 1 32-32z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconCoupon.defaultProps = {
  size: 18,
};

export default IconCoupon;
